package com.zygh.lz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
*@Author: shuaiqi
*@CreateTime: 2022-12-23  14:57
*@Description: 道路救援排班信息实体
*@Version: 1.0
*/
@Data
@ToString
public class SchedulingInformation {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "待命点名称")// 待命点名称
    private String point_name;
    @ApiModelProperty(value = "司机名")// 司机名
    private String driver;
    @ApiModelProperty(value = "司机电话")// 司机电话
    private String driver_phone;
    @ApiModelProperty(value = "部门名称")// 部门名称
    private String company_name;
    @ApiModelProperty(value = "车牌号码")// 车牌号码
    private String number;
    @ApiModelProperty(value = "车牌颜色")//车牌颜色   1--蓝牌，2--黄牌，3--新能源黄牌，4--新能源绿牌
    private String color;
    @ApiModelProperty(value = "待命点纬度")// 待命点纬度
    private String latitude;
    @ApiModelProperty(value = "待命点经度")// 待命点经度
    private String longitude;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //入参，将JSON串转换为日期类型
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参，将日期类型转换为JSON串
    @ApiModelProperty(value = "值班开始时间")// 值班开始时间
    private String start_at;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //入参，将JSON串转换为日期类型
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参，将日期类型转换为JSON串
    @ApiModelProperty(value = "值班结束时间")// 值班结束时间
    private String end_at;
    @ApiModelProperty("排班的时间段：0早高峰，1平峰期，2晚高峰")
    private Integer timeBucket;
    @ApiModelProperty(value = "创建时间")
    private String gmt_create;
    //数量
    private Integer counts;
}
